package v1

import (
	"gf_blog_admin/internal/model"
	"github.com/gogf/gf/v2/frame/g"
)

type ConfigDataReq struct {
	g.Meta  `path:"/system/config/data" method:"get" tags:"system" sm:"系统配置" can:"system.config"`
	ConfKey string `json:"conf_key" in:"query" v:"required" dc:"配置键"`
}

type ConfigDataRes struct {
	Config map[string]interface{} `json:"config" dc:"数据集合"`
}

type ConfigKeysDataReq struct {
	g.Meta   `path:"/system/config/keys" method:"get" tags:"system" sm:"系统多个配置" can:"system.config"`
	ConfKeys string `json:"conf_keys" in:"query" v:"required" dc:"配置键"`
}

type ConfigKeysDataRes struct {
	Config map[string]interface{} `json:"config" dc:"数据集合"`
}

type ConfigUpdateReq struct {
	g.Meta `path:"/system/config/update" method:"put" tags:"system" sm:"系统配置更新" can:"system.config.update"`
	model.ConfigFormInput
}

type ConfigUpdateRes struct{}
